//
//  CPRECOMENDController.m
//  ChinaPoem
//
//  Created by 赵俊明 on 2019/3/4.
//  Copyright © 2019 赵俊明. All rights reserved.
//

#import "CPRECOMENDController.h"
@implementation CPRECOMENDController
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.dataSource = [[CPSQLTools cp_sharedInstance] cp_query_poem:@"select * from poems order by random() limit 50;"];
    [self.collection reloadData];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.RImage = @"refresh";
}

- (void)cp_rightBtn
{
    self.dataSource = [[CPSQLTools cp_sharedInstance] cp_query_poem:@"select * from poems order by random() limit 50;"];
    [self.collection reloadData];
}

@end
